<?php

class Default_ProductController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
        $option = array(
                'layout'=>'layout',
                'layoutPath'=> APPLICATION_PATH .'/layouts/scripts/default'
        );
        Zend_Layout::startMvc($option);
        $this->_model_product = new Application_Model_Product();
    }

    public function indexAction()
    {
        // action body
        $this->getRequest()->getParam("id");
    }

    public function detailAction()
    {
        $product_id = $this->_request->getParam("productid");
        if($product_id){
            $product = $this->_model_product->Get_Product_by_ID($product_id);
            $this->view->product = $product;
            $this->view->headTitle("Chi tiết sản phẩm");
        }
    }


}



